package com.sumer.psychology.blog.domain.model;

import com.sumer.psychology.common.domain.model.AbstractDomainEvent;
import com.sumer.psychology.common.domain.model.Author;

/**
 * User: zhenguang.zhu
 * Date: 2014/9/3
 * Time: 16:54
 */
public class BlogClassifiedEvent extends AbstractDomainEvent {
    private BlogId blogId;
    private String categoryId;
    private Author author;

    public BlogClassifiedEvent(BlogId blogId, String categoryId, Author author) {
        super();
        this.blogId = blogId;
        this.categoryId = categoryId;
        this.author = authorFrom(author);
    }

    public BlogId blogId() {
        return blogId;
    }

    public String categoryId() {
        return categoryId;
    }

    public Author author() {
        return author;
    }
}
